package com.stgy.lease.web.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stgy.lease.model.domain.RoomInfo;
import com.stgy.lease.web.api.dto.BaseSearchDto;
import com.stgy.lease.web.api.dto.RoomInfoSearchDto;
import com.stgy.lease.web.api.vo.RoomItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author lingx
 * @description 针对表【room_info(房间信息表)】的数据库操作Mapper
 * @createDate 2024-08-28 11:00:29
 * @Entity com.stgy.lease.model.domain.RoomInfo
 */
@Mapper
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    List<RoomItemVo> selectRoomItemVoList(Page<RoomItemVo> page,
                                          @Param("searchDto") RoomInfoSearchDto searchDto);

    BigDecimal selectMinRentByApartmentId(Long apartmentId);

    List<RoomItemVo> selectApartmentItemVoList(Page<RoomItemVo> page,
                                               @Param("searchDto")BaseSearchDto baseSearchDto);
}




